package server

import (
	"net/http"
	"time"
	"openapi.itspire.cn/router"
)

func ApiServer() *http.Server {
	s := &http.Server {
		Addr:         ":8088",
		Handler:      router.ApiRouter(),
		ReadTimeout:  5 * time.Second,
		WriteTimeout: 10 * time.Second,
	}
	return s
}